package p270jp.pxv.android.commonObjects.model;

import com.google.android.gms.measurement.api.AppMeasurementSdk;
import p216hn.DefaultConstructorMarker;
import p325m0.MutabilityOwnership;

/* compiled from: WorkType.kt */
/* renamed from: jp.pxv.android.commonObjects.model.WorkType */
/* loaded from: classes2.dex */
public enum WorkType {
    ILLUST("illust"),
    MANGA("manga"),
    ILLUST_MANGA("illust_manga"),
    NOVEL("novel");
    
    public static final Companion Companion = new Companion(null);
    private final String value;

    /* compiled from: WorkType.kt */
    /* renamed from: jp.pxv.android.commonObjects.model.WorkType$Companion */
    /* loaded from: classes2.dex */
    public static final class Companion {
        private Companion() {
        }

        public /* synthetic */ Companion(DefaultConstructorMarker eVar) {
            this();
        }

        public final WorkType valueToWorkType(String str) {
            MutabilityOwnership.m3745m(str, AppMeasurementSdk.ConditionalUserProperty.VALUE);
            WorkType[] values = WorkType.values();
            int length = values.length;
            int i = 0;
            while (i < length) {
                WorkType workType = values[i];
                i++;
                if (MutabilityOwnership.m3749h(workType.getValue(), str)) {
                    return workType;
                }
            }
            return WorkType.ILLUST;
        }
    }

    WorkType(String str) {
        this.value = str;
    }

    public static final WorkType valueToWorkType(String str) {
        return Companion.valueToWorkType(str);
    }

    public final String getValue() {
        return this.value;
    }
}
